<Window
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  x:Class="Microsoft.Samples.CustomControls.ColorPickerDialog"
  xmlns:customControls="clr-namespace:Microsoft.Samples.CustomControls"
  Title="Select a Color"
  Width="600"
  Height="400" WindowStartupLocation="CenterOwner">
  <DockPanel>
        <DockPanel.Background>
            <LinearGradientBrush EndPoint="0.713,0.698" StartPoint="0.713,-0.139">
                <GradientStop Color="#FFFFFFFF" Offset="0.933"/>
                <GradientStop Color="LightBlue" Offset="0.337"/>
            </LinearGradientBrush>
        </DockPanel.Background>
        <StackPanel DockPanel.Dock="Bottom"
      Orientation="Horizontal"
      HorizontalAlignment="Right" 
      Margin="10">
      <Button Name="OKButton"
        Click="okButtonClicked"
        IsEnabled="False" Width="50">OK</Button>
      <Button Click="cancelButtonClicked" Width="50">Cancel</Button>
    </StackPanel>

    <customControls:ColorPicker 
      x:Name="cPicker"
       SelectedColorChanged="onSelectedColorChanged" 
       Margin="10,10,10,0"/>
  </DockPanel>


</Window>
